package com.sophossystems.client.asmon.hibernate;

import java.io.Serializable;

import com.sophossystems.client.asmon.dto.RepresentanteDocDTO;

public class RepresentanteDoc implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8994288560038927207L;

	/** 
	 * This attribute maps to the column idRepLegal in the REPRESENTANTE_DOC table.
	 */
	protected int idRepLegal;

	/** 
	 * This attribute maps to the column idCliente in the REPRESENTANTE_DOC table.
	 */
	protected int idCliente;

	/** 
	 * This attribute represents whether the primitive attribute idCliente is null.
	 */
	protected boolean idClienteNull = true;

	/** 
	 * This attribute maps to the column compDomicilio in the REPRESENTANTE_DOC table.
	 */
	protected int compDomicilio;

	/** 
	 * This attribute represents whether the primitive attribute compDomicilio is null.
	 */
	protected boolean compDomicilioNull = true;

	/** 
	 * This attribute maps to the column fiel in the REPRESENTANTE_DOC table.
	 */
	protected int fiel;

	/** 
	 * This attribute represents whether the primitive attribute fiel is null.
	 */
	protected boolean fielNull = true;

	/** 
	 * This attribute maps to the column compDomicilioFiscal in the REPRESENTANTE_DOC table.
	 */
	protected int compDomicilioFiscal;

	/** 
	 * This attribute represents whether the primitive attribute compDomicilioFiscal is null.
	 */
	protected boolean compDomicilioFiscalNull = true;

	/** 
	 * This attribute maps to the column curp in the REPRESENTANTE_DOC table.
	 */
	protected int curp;

	/** 
	 * This attribute represents whether the primitive attribute curp is null.
	 */
	protected boolean curpNull = true;

	/** 
	 * This attribute maps to the column rfc in the REPRESENTANTE_DOC table.
	 */
	protected int rfc;

	/** 
	 * This attribute represents whether the primitive attribute rfc is null.
	 */
	protected boolean rfcNull = true;

	/** 
	 * This attribute maps to the column otroRfc in the REPRESENTANTE_DOC table.
	 */
	protected int otroRfc;

	/** 
	 * This attribute represents whether the primitive attribute otroRfc is null.
	 */
	protected boolean otroRfcNull = true;

	/**
	 * Method 'RepresentanteDoc'
	 * 
	 */
	public RepresentanteDoc()
	{
	}

	/**
	 * Method 'getIdRepLegal'
	 * 
	 * @return int
	 */
	public int getIdRepLegal()
	{
		return idRepLegal;
	}

	/**
	 * Method 'setIdRepLegal'
	 * 
	 * @param idRepLegal
	 */
	public void setIdRepLegal(int idRepLegal)
	{
		this.idRepLegal = idRepLegal;
	}

	/**
	 * Method 'getIdCliente'
	 * 
	 * @return int
	 */
	public int getIdCliente()
	{
		return idCliente;
	}

	/**
	 * Method 'setIdCliente'
	 * 
	 * @param idCliente
	 */
	public void setIdCliente(int idCliente)
	{
		this.idCliente = idCliente;
		this.idClienteNull = false;
	}

	/** 
	 * Sets the value of idClienteNull
	 */
	public void setIdClienteNull(boolean idClienteNull)
	{
		this.idClienteNull = idClienteNull;
	}

	/** 
	 * Gets the value of idClienteNull
	 */
	public boolean isIdClienteNull()
	{
		return idClienteNull;
	}

	/**
	 * Method 'getCompDomicilio'
	 * 
	 * @return int
	 */
	public int getCompDomicilio()
	{
		return compDomicilio;
	}

	/**
	 * Method 'setCompDomicilio'
	 * 
	 * @param compDomicilio
	 */
	public void setCompDomicilio(int compDomicilio)
	{
		this.compDomicilio = compDomicilio;
		this.compDomicilioNull = false;
	}

	/** 
	 * Sets the value of compDomicilioNull
	 */
	public void setCompDomicilioNull(boolean compDomicilioNull)
	{
		this.compDomicilioNull = compDomicilioNull;
	}

	/** 
	 * Gets the value of compDomicilioNull
	 */
	public boolean isCompDomicilioNull()
	{
		return compDomicilioNull;
	}

	/**
	 * Method 'getFiel'
	 * 
	 * @return int
	 */
	public int getFiel()
	{
		return fiel;
	}

	/**
	 * Method 'setFiel'
	 * 
	 * @param fiel
	 */
	public void setFiel(int fiel)
	{
		this.fiel = fiel;
		this.fielNull = false;
	}

	/** 
	 * Sets the value of fielNull
	 */
	public void setFielNull(boolean fielNull)
	{
		this.fielNull = fielNull;
	}

	/** 
	 * Gets the value of fielNull
	 */
	public boolean isFielNull()
	{
		return fielNull;
	}

	/**
	 * Method 'getCompDomicilioFiscal'
	 * 
	 * @return int
	 */
	public int getCompDomicilioFiscal()
	{
		return compDomicilioFiscal;
	}

	/**
	 * Method 'setCompDomicilioFiscal'
	 * 
	 * @param compDomicilioFiscal
	 */
	public void setCompDomicilioFiscal(int compDomicilioFiscal)
	{
		this.compDomicilioFiscal = compDomicilioFiscal;
		this.compDomicilioFiscalNull = false;
	}

	/** 
	 * Sets the value of compDomicilioFiscalNull
	 */
	public void setCompDomicilioFiscalNull(boolean compDomicilioFiscalNull)
	{
		this.compDomicilioFiscalNull = compDomicilioFiscalNull;
	}

	/** 
	 * Gets the value of compDomicilioFiscalNull
	 */
	public boolean isCompDomicilioFiscalNull()
	{
		return compDomicilioFiscalNull;
	}

	/**
	 * Method 'getCurp'
	 * 
	 * @return int
	 */
	public int getCurp()
	{
		return curp;
	}

	/**
	 * Method 'setCurp'
	 * 
	 * @param curp
	 */
	public void setCurp(int curp)
	{
		this.curp = curp;
		this.curpNull = false;
	}

	/** 
	 * Sets the value of curpNull
	 */
	public void setCurpNull(boolean curpNull)
	{
		this.curpNull = curpNull;
	}

	/** 
	 * Gets the value of curpNull
	 */
	public boolean isCurpNull()
	{
		return curpNull;
	}

	/**
	 * Method 'getRfc'
	 * 
	 * @return int
	 */
	public int getRfc()
	{
		return rfc;
	}

	/**
	 * Method 'setRfc'
	 * 
	 * @param rfc
	 */
	public void setRfc(int rfc)
	{
		this.rfc = rfc;
		this.rfcNull = false;
	}

	/** 
	 * Sets the value of rfcNull
	 */
	public void setRfcNull(boolean rfcNull)
	{
		this.rfcNull = rfcNull;
	}

	/** 
	 * Gets the value of rfcNull
	 */
	public boolean isRfcNull()
	{
		return rfcNull;
	}

	/**
	 * Method 'getOtroRfc'
	 * 
	 * @return int
	 */
	public int getOtroRfc()
	{
		return otroRfc;
	}

	/**
	 * Method 'setOtroRfc'
	 * 
	 * @param otroRfc
	 */
	public void setOtroRfc(int otroRfc)
	{
		this.otroRfc = otroRfc;
		this.otroRfcNull = false;
	}

	/** 
	 * Sets the value of otroRfcNull
	 */
	public void setOtroRfcNull(boolean otroRfcNull)
	{
		this.otroRfcNull = otroRfcNull;
	}

	/** 
	 * Gets the value of otroRfcNull
	 */
	public boolean isOtroRfcNull()
	{
		return otroRfcNull;
	}
	
	public void mapper (RepresentanteDocDTO representante){
		
		this.compDomicilio = representante.getCompDomicilio();
		this.compDomicilioFiscal = representante.getCompDomicilioFiscal();
		this.curp = representante.getCurp();
		this.fiel = representante.getFiel();
		this.idCliente = representante.getIdCliente();
		this.idRepLegal = representante.getIdRepLegal();
		this.otroRfc = representante.getOtroRfc();
		this.rfc = representante.getRfc();
	}

}
